Data Sources

  • A source supplies data to be shown on the map. Sources don’t contain styling details like color or width. Use subclasses of MGLStyleLayer to give visual representation to sources.

    You should use the concrete subclasses of MGLSource to create vector, raster, GeoJSON, and other source types.

    See more

    Declaration

    Objective-C

    @interface MGLSource : NSObject

    Swift

    class MGLSource : NSObject
  • The MGLTileSet class holds the tile URL template strings and associated configuration for those strings. It can be passed to an MGLVectorSource or MGLRasterSource instead of an NSURL representing a TileJSON URL to create a source.

    See more

    Declaration

    Objective-C

    @interface MGLTileSet : NSObject

    Swift

    class MGLTileSet : NSObject